package com.his.his_system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 供应商表
 * @TableName dzm_his_supplier
 */
@TableName(value ="dzm_his_supplier")
public class DzmHisSupplier implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long sid;

    /**
     * 供应商名称
     */
    private String supplierName;

    /**
     * 联系人名称
     */
    private String contactName;

    /**
     * 联系人手机
     */
    private String contactMobile;

    /**
     * 联系人电话
     */
    private String contactTelephone;

    /**
     * 银行账号
     */
    private String bankAccount;

    /**
     * 供应商地址
     */
    private String address;

    /**
     * 医院id
     */
    private Object hospitalId;

    /**
     * 创建时间
     */
    private Object createTime;

    /**
     * 更新时间
     */
    private Object updateTime;

    /**
     * 角色
     */
    private Object srole;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    public Long getSid() {
        return sid;
    }

    /**
     * id
     */
    public void setSid(Long sid) {
        this.sid = sid;
    }

    /**
     * 供应商名称
     */
    public String getSupplierName() {
        return supplierName;
    }

    /**
     * 供应商名称
     */
    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    /**
     * 联系人名称
     */
    public String getContactName() {
        return contactName;
    }

    /**
     * 联系人名称
     */
    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    /**
     * 联系人手机
     */
    public String getContactMobile() {
        return contactMobile;
    }

    /**
     * 联系人手机
     */
    public void setContactMobile(String contactMobile) {
        this.contactMobile = contactMobile;
    }

    /**
     * 联系人电话
     */
    public String getContactTelephone() {
        return contactTelephone;
    }

    /**
     * 联系人电话
     */
    public void setContactTelephone(String contactTelephone) {
        this.contactTelephone = contactTelephone;
    }

    /**
     * 银行账号
     */
    public String getBankAccount() {
        return bankAccount;
    }

    /**
     * 银行账号
     */
    public void setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount;
    }

    /**
     * 供应商地址
     */
    public String getAddress() {
        return address;
    }

    /**
     * 供应商地址
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 医院id
     */
    public Object getHospitalId() {
        return hospitalId;
    }

    /**
     * 医院id
     */
    public void setHospitalId(Object hospitalId) {
        this.hospitalId = hospitalId;
    }

    /**
     * 创建时间
     */
    public Object getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Object createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新时间
     */
    public Object getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Object updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 角色
     */
    public Object getSrole() {
        return srole;
    }

    /**
     * 角色
     */
    public void setSrole(Object srole) {
        this.srole = srole;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisSupplier other = (DzmHisSupplier) that;
        return (this.getSid() == null ? other.getSid() == null : this.getSid().equals(other.getSid()))
            && (this.getSupplierName() == null ? other.getSupplierName() == null : this.getSupplierName().equals(other.getSupplierName()))
            && (this.getContactName() == null ? other.getContactName() == null : this.getContactName().equals(other.getContactName()))
            && (this.getContactMobile() == null ? other.getContactMobile() == null : this.getContactMobile().equals(other.getContactMobile()))
            && (this.getContactTelephone() == null ? other.getContactTelephone() == null : this.getContactTelephone().equals(other.getContactTelephone()))
            && (this.getBankAccount() == null ? other.getBankAccount() == null : this.getBankAccount().equals(other.getBankAccount()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getHospitalId() == null ? other.getHospitalId() == null : this.getHospitalId().equals(other.getHospitalId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getSrole() == null ? other.getSrole() == null : this.getSrole().equals(other.getSrole()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSid() == null) ? 0 : getSid().hashCode());
        result = prime * result + ((getSupplierName() == null) ? 0 : getSupplierName().hashCode());
        result = prime * result + ((getContactName() == null) ? 0 : getContactName().hashCode());
        result = prime * result + ((getContactMobile() == null) ? 0 : getContactMobile().hashCode());
        result = prime * result + ((getContactTelephone() == null) ? 0 : getContactTelephone().hashCode());
        result = prime * result + ((getBankAccount() == null) ? 0 : getBankAccount().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getHospitalId() == null) ? 0 : getHospitalId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getSrole() == null) ? 0 : getSrole().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sid=").append(sid);
        sb.append(", supplierName=").append(supplierName);
        sb.append(", contactName=").append(contactName);
        sb.append(", contactMobile=").append(contactMobile);
        sb.append(", contactTelephone=").append(contactTelephone);
        sb.append(", bankAccount=").append(bankAccount);
        sb.append(", address=").append(address);
        sb.append(", hospitalId=").append(hospitalId);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", srole=").append(srole);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}